<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
122<?php 
require "DataLoad.php"; 



//$ArrGuildPara=explode("|",$result["Guild_para"]);
//$GuildName=$result["Guild_Name"];
$GuildName= "str测试公会"; // $result["Guild_Name"];
$GuildsName= "str副标题副标题副标题副标题"; // $result["Guild_sName"];
//$GuildServer=$result["guild_server"];
$StylePath="style";
//$StylePath=$result["Guild_style"];
//$IconPath=$ArrGuildPara[1];
//$IconExt=$ArrGuildPara[2];
//$Precision=$ArrGuildPara[3];
//$lvlGBook=$ArrGuildPara[4];


?>12
<html>
<head>
<title><?php echo $GuildName;?> - DKP系统</title>
<script language="JavaScript" src="inc/jquery-1.3.2.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Generator" content="EditPlus">
<meta name="Author" content="SULei">
<meta name="Keywords" content="魔兽世界DKP系统 DKP程序 公会DKP">
<meta name="Description" content="">
<link href="<?php echo $StylePath;?>/main.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="style/styleplus.js"></script>
<script language="JavaScript" src="inc/UBB_UI.js"></script>
<style type="text/css" media="all">

</style>
</head>

<body>
<div class="header">
<?php require "menu.php"; ?>
</div>
	
	<?php 

print strftime("%m/%d/%Y %H:%M:%S %p");

print "";



if (isset($_POST["article_datetime"])) {
	echo $_POST["article_datetime"];
	$article_class = "news";
	$article_title = $_POST["article_title"];
	$article_text = $_POST["article_text"];
	$article_date = $_POST["article_datetime"];
	$article_editor = "SULei";
	$sql = "INSERT into article (article_class,article_title,article_text,article_date,article_editor) VALUES ('$article_class','$article_title','$article_text','$article_date','$article_editor')";
	mysql_query("$sql") or die(mysql_error());
	echo "<div>$sql 插入成功!</div>";
	} else {
		echo "none post";
		};
?>
<form method="post" action="?">

<input type="text" name="article_title" value="123">
<textarea name="article_text" rows="5" cols="50">2121</textarea>
strftime()
<input type="text" name="article_datetime" value="<?php echo strftime("%H") ?>">

date()
<input type="text" name="article_datetime" value="<?php echo date("Y-m-d H:i:s") ?>">
<input type="submit" value="Submit">
</form>

<?php 
$data_guestbook = mysql_query("select * from article order by id desc");
while($row = mysql_fetch_array($data_guestbook)){
echo $row["article_title"]."<br/>";
echo $row["article_text"]."<br/>";
echo $row["article_date"]."<br/>";
echo $row["article_class"]."<br/>";

};

$data_guestbook = mysql_list_tables("fsdkp");

if (!$data_guestbook) {
	print "DB Error, could not list tables\n";
	print 'MySQL Error: ' . mysql_error();
	exit;
}

while ($row = mysql_fetch_row($data_guestbook)) {
	print "Table: $row[0]\n";
}


mysql_free_result($data_guestbook);





require "footer.php";
?>

<br><br><br><br>

	</body>
</html>